home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_400
/
406_01
/
atoc
/
strins.c
< prev
next >
Wrap
Text File
|
1993-11-09
|
893b
|
29 lines
/*=========================================================================
ATOC strins module
=========================================================================*/
#include <stdio.h>
#include "atoc.h"
/*-------------------------------------------------------------------------
local global variables
-------------------------------------------------------------------------*/
PRIVATE char temp[ MAXLINELENGTH ]; /* temp buffer for end of line */
/*-------------------------------------------------------------------------
strins( p, s ) inserts string s into the target string at p. We assume
there is room.
-------------------------------------------------------------------------*/
strins( p, s )
char *p, *s;
{
strcpy( temp, p );
strcpy( p, s );
strcat( p, temp );
}
/*=======================================================================*/